#ifndef __MUSICSOUND_H__
#define __MUSICSOUND_H__


#include "NetworkEngine/NetworkMusicFile.h"

namespace SPlayer
{
    namespace Music
    {
        using namespace Network;
        ref class MusicSound
        {
        public:
            MusicSound(IrrKlang::ISound ^sound)
                : sound(sound), networkFile(nullptr), type(MusicType::LocalMusic)
            { }
            MusicSound(IrrKlang::ISound ^sound, NetworkMusicFile ^networkFile)
                : sound(sound), networkFile(networkFile), type(MusicType::NetworkMusic)
            { }
            enum class MusicType
            {
                LocalMusic,
                NetworkMusic
            };
            MusicType type = MusicType::LocalMusic;
            IrrKlang::ISound ^sound = nullptr;
            NetworkMusicFile ^networkFile = nullptr;
        };
    }
}
#endif // __MUSICSOUND_H__